package com.dlnu.sujiwords.dao;

import com.dlnu.sujiwords.domain.pojo.EnWords;
import com.dlnu.sujiwords.domain.pojo.Review;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Tang
 */
public interface ReviewMapper {

    int hasReviewNums(@Param("phoneNumber") String phoneNumber, @Param("word_table") Integer word_table);

    int hasMasterReviewNums(@Param("phoneNumber") String phoneNumber, @Param("word_table") Integer word_table);

    int insertReviewRecord(Review review);

    EnWords getReviewWordsProcessA(@Param("phoneNumber") String phoneNumber,@Param("word_table") Integer word_table,@Param("tableType") String tableType);

    EnWords getMasterReviewWordsProcessBForNotMastered(@Param("phoneNumber") String phoneNumber,@Param("word_table") Integer word_table);

    EnWords getMasterReviewWordsProcessBForMastered(@Param("phoneNumber") String phoneNumber,@Param("word_table") Integer word_table);

    Integer DelReviewRecord(@Param("userId") Integer userId,@Param("word") String word,@Param("wordTable") Integer wordTable);
}